home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / include / vect.h < prev    next >
C/C++ Source or Header  |  1993-02-16  |  1KB  |  52 lines

  1. /* Copyright (c) 1992 The Geometry Center; University of Minnesota
  2.    1300 South Second Street;  Minneapolis, MN  55454, USA;
  3.    
  4. This file is part of geomview/OOGL. geomview/OOGL is free software;
  5. you can redistribute it and/or modify it only under the terms given in
  6. the file COPYING, which you should have received along with this file.
  7. This and other related software may be obtained via anonymous ftp from
  8. geom.umn.edu; email: software@geom.umn.edu. */
  9.  
  10. /* Authors: Charlie Gunn, Stuart Levy, Tamara Munzner, Mark Phillips */
  11.  
  12. #ifndef VECTDEF
  13. #define VECTDEF
  14.  
  15. #ifndef NULL
  16. #define NULL 0
  17. #endif
  18.  
  19. #include    "bbox.h"
  20.  
  21. #define    VECT_MAGIC    0x4ac95203    /* For binary external format */
  22.  
  23. #define VECTMAGIC GeomMagic ('v', 1)    /* For checking whether a vect. */
  24.  
  25. typedef struct Vect Vect;
  26.  
  27. #define vcount(code)    (abs(code))
  28. #define    vwrapped(code)    ((code) < 0)
  29.  
  30. #define    vSane(v)   (0 <= (v)->ncolor && (v)->ncolor <= (v)->nvert && \
  31.             (v)->nvec <= (v)->nvert && (v)->nvert < 9999999)
  32.  
  33.  
  34. GeomClass    *VectMethods();
  35. char    *VectName();
  36. Vect    *VectLoad();
  37. Vect    *VectFLoad();
  38. Vect    *VectSave();
  39. Vect    *VectFSave();
  40. BBox    *VectBound();
  41. Geom    *VectBoundSphere();
  42. Vect    *VectDraw();
  43. int    VectShare();
  44. int    VectPrivate();
  45. void    RendLine();
  46. Vect    *VectTransform( Vect *, Transform );
  47. Vect    *VectTransformTo(Vect *, Transform );
  48.  
  49. int    VectSane(Vect *);
  50.  
  51. #endif /*VECTDEF*/
  52.